package com.jumi.microservice.warehousein.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jumi.microservice.common.base.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 入库记录表
 *
 * @author ssk
 * @create 2020/8/15 16:07
 **/

@Data
public class JmWarehouseInStock extends BaseEntity {

    private Long stockId;

    /** 入库申请Id */
    private Long inId;

    /**
     * 入库类型Id
     */
    private Long inTypeId;

    private Integer isNormal;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date inTime;

    /**
     * 仓库ID
     */
    private Long warehouseId;

    /**
     * 仓库类型;0=正规仓;1=破损仓
     */
    private Integer warehouseType;

    /**
     * 商品ID
     */
    private Long goodsId;

    /**
     * 商品编码
     */
    private String goodsCode;

    /**
     * 供应商ID
     */
    private Long supplierId;

    /**
     * 批次号
     */
    private String batchCode;

    private Long materialId;

    /**
     * 成本价
     */
    private BigDecimal price;

    /**
     * 入库数量
     */
    private Integer inNum;

}
